package cn.echo.ecc.feign;

import cn.echo.ecc.fallback.MediaFileServiceFallbackFactory;
import cn.echo.ecc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-media",fallbackFactory = MediaFileServiceFallbackFactory.class)
public interface MediaFileService {

    @RequestMapping(value = "/mediaFile/getMediaFileByCourseId/{courseId}",method = RequestMethod.GET)
    JSONResult getMediaFileByCourseId(@PathVariable("courseId")Long courseId);

}
